/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ucb.ProjetoFinal.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;

/**
 *
 * @author DCBorges
 */
@Entity
@Table(name = "sdctb009_hsto_rais")
public class HistoricoRais implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "NU_SQNCL_RAIS")
    private Integer nuSqnclRais;
    @Basic(optional = false)
    @NotNull
    @Column(name = "NU_NIS")
    private long nuNis;
    @Basic(optional = false)
    @NotNull
    @Column(name = "DV_NIS")
    private short dvNis;
    @Basic(optional = false)
    @NotNull
    @Column(name = "NU_ANO_BASE")
    private short nuAnoBase;
    @Basic(optional = false)
    @NotNull
    @Column(name = "NU_CNPJ_EMPREGADOR")
    private long nuCnpjEmpregador;
    @Basic(optional = false)
    @NotNull
    @Column(name = "DT_DESLIGAMENTO")
    @Temporal(TemporalType.DATE)
    private Date dtDesligamento;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Basic(optional = false)
    @NotNull
    @Column(name = "VR_REMUNERACAO_JUL")
    private BigDecimal vrRemuneracaoJul;
    @Basic(optional = false)
    @NotNull
    @Column(name = "VR_REMUNERACAO_AGO")
    private BigDecimal vrRemuneracaoAgo;
    @Basic(optional = false)
    @NotNull
    @Column(name = "VR_REMUNERACAO_SET")
    private BigDecimal vrRemuneracaoSet;
    @Basic(optional = false)
    @NotNull
    @Column(name = "VR_REMUNERACAO_OUT")
    private BigDecimal vrRemuneracaoOut;
    @Basic(optional = false)
    @NotNull
    @Column(name = "VR_REMUNERACAO_NOV")
    private BigDecimal vrRemuneracaoNov;
    @Basic(optional = false)
    @NotNull
    @Column(name = "VR_REMUNERACAO_DEZ")
    private BigDecimal vrRemuneracaoDez;

    public HistoricoRais() {
    }

    public HistoricoRais(Integer nuSqnclRais) {
        this.nuSqnclRais = nuSqnclRais;
    }

    public HistoricoRais(Integer nuSqnclRais, long nuNis, short dvNis, short nuAnoBase, long nuCnpjEmpregador, Date dtDesligamento, BigDecimal vrRemuneracaoJul, BigDecimal vrRemuneracaoAgo, BigDecimal vrRemuneracaoSet, BigDecimal vrRemuneracaoOut, BigDecimal vrRemuneracaoNov, BigDecimal vrRemuneracaoDez) {
        this.nuSqnclRais = nuSqnclRais;
        this.nuNis = nuNis;
        this.dvNis = dvNis;
        this.nuAnoBase = nuAnoBase;
        this.nuCnpjEmpregador = nuCnpjEmpregador;
        this.dtDesligamento = dtDesligamento;
        this.vrRemuneracaoJul = vrRemuneracaoJul;
        this.vrRemuneracaoAgo = vrRemuneracaoAgo;
        this.vrRemuneracaoSet = vrRemuneracaoSet;
        this.vrRemuneracaoOut = vrRemuneracaoOut;
        this.vrRemuneracaoNov = vrRemuneracaoNov;
        this.vrRemuneracaoDez = vrRemuneracaoDez;
    }

    public Integer getNuSqnclRais() {
        return nuSqnclRais;
    }

    public void setNuSqnclRais(Integer nuSqnclRais) {
        this.nuSqnclRais = nuSqnclRais;
    }

    public long getNuNis() {
        return nuNis;
    }

    public void setNuNis(long nuNis) {
        this.nuNis = nuNis;
    }

    public short getDvNis() {
        return dvNis;
    }

    public void setDvNis(short dvNis) {
        this.dvNis = dvNis;
    }

    public short getNuAnoBase() {
        return nuAnoBase;
    }

    public void setNuAnoBase(short nuAnoBase) {
        this.nuAnoBase = nuAnoBase;
    }

    public long getNuCnpjEmpregador() {
        return nuCnpjEmpregador;
    }

    public void setNuCnpjEmpregador(long nuCnpjEmpregador) {
        this.nuCnpjEmpregador = nuCnpjEmpregador;
    }

    public Date getDtDesligamento() {
        return dtDesligamento;
    }

    public void setDtDesligamento(Date dtDesligamento) {
        this.dtDesligamento = dtDesligamento;
    }

    public BigDecimal getVrRemuneracaoJul() {
        return vrRemuneracaoJul;
    }

    public void setVrRemuneracaoJul(BigDecimal vrRemuneracaoJul) {
        this.vrRemuneracaoJul = vrRemuneracaoJul;
    }

    public BigDecimal getVrRemuneracaoAgo() {
        return vrRemuneracaoAgo;
    }

    public void setVrRemuneracaoAgo(BigDecimal vrRemuneracaoAgo) {
        this.vrRemuneracaoAgo = vrRemuneracaoAgo;
    }

    public BigDecimal getVrRemuneracaoSet() {
        return vrRemuneracaoSet;
    }

    public void setVrRemuneracaoSet(BigDecimal vrRemuneracaoSet) {
        this.vrRemuneracaoSet = vrRemuneracaoSet;
    }

    public BigDecimal getVrRemuneracaoOut() {
        return vrRemuneracaoOut;
    }

    public void setVrRemuneracaoOut(BigDecimal vrRemuneracaoOut) {
        this.vrRemuneracaoOut = vrRemuneracaoOut;
    }

    public BigDecimal getVrRemuneracaoNov() {
        return vrRemuneracaoNov;
    }

    public void setVrRemuneracaoNov(BigDecimal vrRemuneracaoNov) {
        this.vrRemuneracaoNov = vrRemuneracaoNov;
    }

    public BigDecimal getVrRemuneracaoDez() {
        return vrRemuneracaoDez;
    }

    public void setVrRemuneracaoDez(BigDecimal vrRemuneracaoDez) {
        this.vrRemuneracaoDez = vrRemuneracaoDez;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (nuSqnclRais != null ? nuSqnclRais.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof HistoricoRais)) {
            return false;
        }
        HistoricoRais other = (HistoricoRais) object;
        if ((this.nuSqnclRais == null && other.nuSqnclRais != null) || (this.nuSqnclRais != null && !this.nuSqnclRais.equals(other.nuSqnclRais))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "br.ucb.ProjetoFinal.domain.HistoricoRais[ nuSqnclRais=" + nuSqnclRais + " ]";
    }
}
